html {
  font-size: var(--font-size);
}

html body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: white;
}

html body .goBack {
  position: fixed;
  left: 0rem;
  top: 0.15rem;
  width: 0.8rem;
  height: 0.6rem;
  font-size: 0.3rem;
  z-index: 2;
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 0 0.2rem;
}

html body .toggleCamera {
  position: fixed;
  right: 0rem;
  top: 0.15rem;
  width: 0.8rem;
  height: 0.6rem;
  font-size: 0.3rem;
  z-index: 2;
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 0 0.2rem;
}

html body #controller {
  position: fixed;
  width: 100vw;
  height: 2.6rem;
  left: 0;
  bottom: 0;
  background-color: #121212;
  z-index: 1;
}

html body #controller #status {
  display: block;
  position: absolute;
  left: 1.31rem;
  bottom: 2.5rem;
  width: 1.5rem;
  height: 0.3rem;
  font-size: 0.2rem;
  text-align: center;
}

html body #controller canvas {
  display: block;
  position: absolute;
  left: 1.31rem;
  bottom: 1.5rem;
  width: 1.5rem;
  height: 1rem;
}

html body #controller .openCamera {
  display: flex;
  position: absolute;
  left: 0.4rem;
  bottom: 0.85rem;
  font-size: 0.5rem;
  width: 1.2rem;
  height: 0.8rem;
  justify-content: center;
  align-items: center;
}

html body #controller .hangUp {
  display: flex;
  position: absolute;
  right: 0.4rem;
  bottom: 0.85rem;
  font-size: 0.5rem;
  width: 1.2rem;
  height: 0.8rem;
  justify-content: center;
  align-items: center;
}

#micButton {
  position: absolute;
  right: 0.35rem;
  bottom: 1.7rem;
  width: 0.7rem;
  height: 0.7rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.45rem;
  color: black;
}

#micButton.mic-off {
  background-color: gray;
  color: white;
}

#captionButton {
  position: absolute;
  left: 0.35rem;
  bottom: 1.7rem;
  width: 0.7rem;
  height: 0.7rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.45rem;
  color: black;
}

#captionButton.caption-off {
  background-color: gray;
  color: white;
}

html body .endFunc {
  width: 1.5rem;
  height: 1.1rem;
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  font-size: 0.6rem;
  transform: translateX(-50%);
  display: none;
  justify-content: center;
  align-items: flex-end;
  color: red;
  z-index: 1;
}

html body .shutUpSpeak {
  width: 1.5rem;
  height: 1.1rem;
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  font-size: 0.6rem;
  transform: translateX(-50%);
  display: none;
  justify-content: center;
  align-items: flex-end;
  color: red;
  z-index: 1;
}

html body video {
  position: fixed;
  width: 100vw;
  height: 5.24rem;
  z-index: -1;
}

html body #container {
  width: 100vw;
  height: 100vh;
  transition: transform 0.2s ease;
}

html body #container img {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  border-radius: 0.15rem;
  box-shadow: 0 0 0.05rem rgba(0, 0, 0, 0.2);
  top: 1.7rem;
  left: 1.31rem;
}

html body #container.shifted {
  transform: translateY(6.34rem);
  border-top-left-radius: 0.1rem;
  border-top-right-radius: 0.1rem;
}

#findItemModal {
  display: none;
  position: fixed;
  left: 50%;
  top: 53%;
  width: 90%;
  height: 88%;
  background-color: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%);
  z-index: 4;
  border: 1px solid #333;
}

#findItemModal .find-item-tip{
  position: fixed;
  text-align: center;
  font-size: small;
  width: 100%;
  top: -6%;
  padding: 4% 0px;
}

#findItemModal .no-item-tip {
  position: fixed;
  text-align: center;
  font-size: large;
  width: 88%;
  top: 36%;
  padding: 6%;
  display: none;
  color: darkgray;
}

#overflowArea {
  position: fixed;
  left: 0%;
  top: 0%;
  width: 100%;
  height: 92%;
  overflow: auto;
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;

}

.gallery-item {
  width: calc(48% - 2px);
  margin: 1%;
  text-align: center;
  border: 1px solid #333;
}

.gallery-item button {
  width: 100%;
  border: none;
  background: none;
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.gallery-item p {
  color: #ffffff;
  margin: 5px 0;
}

#closeModalButton {
  position: fixed;
  bottom: 0%;
  left: 0;
  width: 100%;
  background-color: #333;
  text-align: center;
  height: 8%;
  color: white;
  border: none;
  font-size: large;
}

#closeModalButton:hover {
  background-color: #444;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3;
}

#optionsBar {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 95%;
  background-color: #1e1e1e;
  transform: translateX(-50%);
  z-index: 2;
  justify-content: space-around;
  align-items: center;
  display: flex;
}

.optionButton {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* 垂直居中 */
  height: 0.8rem;
  width: 23.75%;
}

.captionModal {
  position: fixed;
  bottom: 3rem;
  width: 94%;
  background-color: rgba(30, 30, 30, 0.5);
  color: white;
  text-align: left;
  padding: 0.1rem 3%;
  z-index: 0;
  display: none;
}

.captionModal p {
  margin: 0px;
  font-size: 0.18rem;
}

/* .frame-window {
  max-width: 100vw;
  max-height: 5.24rem;
  width: auto;
  height: auto;
  display: none;
  margin: 0 auto;
  position: absolute;
  top: 2.62rem;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
} */